package com.vip.jwt.config;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @author vip
 * @date 2020-5-5 11:36
 */
public class MyUsernamePasswordToken extends UsernamePasswordToken {

    /**
     * 自定义Realm的名字（例如：MyRealm、XCXRealm）
     */
    private String loginType;

    public MyUsernamePasswordToken() {}

    public MyUsernamePasswordToken(final String username, final String password, final String loginType) {
        super(username, password);
        this.loginType = loginType;
    }

    public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }

}
